home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 85 / CD Temático 40 Febrero 2004.iso / DOS / ntfs / common / support.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-11  |  1.3 KB  |  49 lines

  1. /*
  2.  *  support.h
  3.  *  Header file for specific support.c
  4.  *
  5.  *  Copyright (C) 1997 RΘgis Duchesne
  6.  */
  7.  
  8. /* Debug levels */
  9. #define DEBUG_OTHER     1
  10. #define DEBUG_MALLOC    2
  11. #define DEBUG_BSD       4
  12. #define DEBUG_LINUX     8
  13. #define DEBUG_DIR1     16
  14. #define DEBUG_DIR2     32
  15. #define DEBUG_DIR3     64
  16. #define DEBUG_FILE1   128
  17. #define DEBUG_FILE2   256
  18. #define DEBUG_FILE3   512
  19. #define DEBUG_NAME1  1024
  20. #define DEBUG_NAME2  2048
  21.  
  22. void ntfs_debug(int mask, const char *fmt, ...);
  23. #ifdef NTFS_IN_LINUX_KERNEL
  24. #include <linux/slab.h>
  25. #define ntfs_malloc(size)  kmalloc(size,GFP_KERNEL)
  26. #define ntfs_free(ptr)     kfree(ptr)
  27. #else
  28. void *ntfs_malloc(int size);
  29. void ntfs_free(void *block);
  30. #endif
  31. void ntfs_bzero(void *s, int n);
  32. void ntfs_memcpy(void *dest, const void *src, ntfs_size_t n);
  33. void ntfs_memmove(void *dest, const void *src, ntfs_size_t n);
  34. void ntfs_error(const char *fmt,...);
  35. int ntfs_read_mft_record(ntfs_volume *vol, int mftno, char *buf);
  36. int ntfs_getput_clusters(ntfs_volume *pvol, int cluster, ntfs_size_t offs,
  37.     ntfs_io *buf);
  38. ntfs_time64_t ntfs_now(void);
  39. int ntfs_dupuni2map(ntfs_volume *vol, ntfs_u16 *in, int in_len, char **out,
  40.     int *out_len);
  41. int ntfs_dupmap2uni(ntfs_volume *vol, char* in, int in_len, ntfs_u16 **out,
  42.     int *out_len);
  43.  
  44. /*
  45.  * Local variables:
  46.  * c-file-style: "linux"
  47.  * End:
  48.  */
  49.